# -*- coding: utf-8 -*-
"""
-------------------------------------------------
Project Name: luffcity study project
File Name: welcome.py
Author: kij
Create Date: 2021/2/12
-------------------------------------------------
"""
# 今入系统然后提示功能
from module_two.day15.homework.src import search_video_id_name, download_video, show_news_page

menu_dict = {
	'1': show_news_page.show_page_by_num,
	'2': search_video_id_name.search_video,
	'3': download_video.download_video
}

def print_hint():
	while True:
		check = input("新闻查看，模块分区，1、查看新闻 2、搜索新闻 3、下载新闻。【q或Q退出】\n输入你的选择:").strip()
		if check.upper() == "Q":
			break
		if not check.isdecimal():
			print("输入错误")
		elif check in menu_dict:
			menu_dict[check]()
		else:
			print("输入错误")


